package com.zhuoyue.common.core.domain;


public class TblManagementDO extends TblDepartmentDO {
    private Long id;

    private String orgCode;

    private String nickName;

    private String account;

    private String password;

    //**************角色中的参数************
    private String roleName;

    private Integer roleType;


    private String menuId;
//**************************************

    private Integer isOpen;

    private String type;

    private String createTime;

    private String modifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode == null ? null : orgCode.trim();
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }


    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getCreateTime() {
        if (createTime != null) {
            return createTime.substring(0, 19);//由于取出数据库的时候后面会多出一个.0用于区分相同时间插入的情况，所以这边为了展示效果就取出前面19位
        } else {
            return createTime = null;
        }
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getModifyTime() {
        return modifyTime;
    }

    @Override
    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }


    @Override
    public String toString() {
        return "TblManagementDO{" +
                "id=" + id +
                ", orgCode='" + orgCode + '\'' +
                ", nickName='" + nickName + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleType=" + roleType +
                ", menuId='" + menuId + '\'' +
                ", isOpen=" + isOpen +
                ", type='" + type + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                '}';
    }
}
